// **************** Data.h ***************************

// **************** Data_PackageObject ***************************
//
//  Packages data into objects
//
// ***************************************************************
int Data_PackageObject(char MSBbyte, LSBbyte, DataObject *package);

// **************** Data_UnpackageObject *************************
//
// Extracts data and id from objects
//
// ***************************************************************
int Data_UnpackageObject(DataObject *package, unsigned short data);

// ******************* Data_PackageCANPacket *********************
//
// Packages 12bit data and 4bit id into two 8bytes for compatibility
// with CAN transmissions
//
// ***************************************************************
int Data_PackageCANPacket(char id, unsigned short data, char *MSBbyte, char *LSBbyte);